#ifndef __TIM_H_
#define __TIM_H_

#include "stdint.h"

typedef enum
{
    TIM_0,
    TIM_1,
    TIM_2
} tim_enum;

typedef struct
{
    uint8_t TH; /* !> TIMER TH */
    uint8_t TL; /* !> TIMER TL */
} tim_THL;

typedef struct
{
    uint16_t count;
} tim_t;

void tm0_init(uint16_t time);
void tm1_init(uint16_t time);
uint16_t tim_0_get_count(void);

#endif
